import { Pipe, PipeTransform } from '@angular/core';

@Pipe({
    name: 'chinessNum'
})
export class ChinessNumPipe implements PipeTransform {
    transform(value: any, ...args: any[]): any {
        let _arr = ["一", "二", "三", "四", "五", "六", "七", "八", "九", "十",]
        if (value < 11) {
            return _arr[value - 1]
        }else{
            return value
        }
    }
}
